package mjc.tds;

public class TYPE {
	
	protected int taille;
	protected String ident;
	
	public TYPE(int t, String nom){
		this.taille = t;
		this.ident = nom;
	}
	
	public boolean compareTo(TYPE type2){
		return this.ident.equals(type2.ident);
	}
	
	public String toString(){
		return this.ident + "(" + this.taille + ")";
	}
	
	public int getTaille() {
		return taille;
	}

	public void setTaille(int taille) {
		this.taille = taille;
	}
}
